package Methodes;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Vector;

import extracteur.XLSExtracteur;

public class SOCP_CVX extends Methode{
	private String cout = "";
	private Vector<String> x = new Vector<String>(35);
	private String[][] puissance = new String[7][5];

	SOCP_CVX(){
		File file = new File("result_projet_cvx");
		recuperer(file);
	}


	private void recuperer(File file) {
		// TODO Auto-generated method stub

		try{
			InputStream ips=new FileInputStream(file); 
			InputStreamReader ipsr=new InputStreamReader(ips);
			BufferedReader br=new BufferedReader(ipsr);
			String ligne;
			int boucle = -1;
			ligne=br.readLine();

			cout = ligne;
			
			
			for (int j=0; j<7; j++){
				for (int c=0; c<5; c++){
					
						ligne = br.readLine();
						puissance[j][c] = ligne;
				}
			}
			
			
			x.add(ligne);
			br.close(); 
		}	

		catch (Exception e){
			System.out.println(e.toString());
		}	

		afficher();
	}

	private void afficher(){
		System.out.println("cout : "+cout);

		for (String val : x){
			System.out.println("val " + val);
		}
	}

	public String getCout() {return cout;}

	public Vector<String> getX() {return x;}

	public static void main(String[] args) {

		SOCP_CVX socp = new SOCP_CVX();
	}


	@Override
	public String[][] getPuissance() {
		// TODO Auto-generated method stub
		return puissance;
	}



}
